<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 400px;
            height: 2400px;
            background-color: red;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <!-- <button>点点点</button> -->
    <div></div>
    <script>
        // var btn = document.querySelector("button")
        // document.onclick = function (event) {
        //     console.log("草里来来")
        //     console.log(arguments[0])
        // }
        // document.onmouseup = function (event) {
        //     console.log("草里来来")
        //     console.log(arguments[0])
        // }
        // document.oncontextmenu = function (event) {
        //     console.log("草里来来")
        //     console.log(arguments[0])
        // }
        // var box = document.querySelector("div")
        // box.onclick = function (event) {
        //     var e = event || window.event
        //     console.log(e.offsetX)
        //     console.log(e.offsetY)
        // }
        // var box = document.querySelector("div")
        // box.onclick = function (event) {
        //     var e = event || window.event
        //     console.log(e.clientX)
        //     console.log(e.clientY)
        // }
        // var box = document.querySelector("div")
        // box.onclick = function (event) {
        //     var e = event || window.event
        //     console.log(e.pageX)
        //     console.log(e.pageY)
        // }
    </script>
</body>

</html>